<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>站点管理</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="stylesheet" href="assets/layui/css/layui.css">
	<link rel="stylesheet" href="assets/css/all.css" />
	<style>
		.layui-input-3{
			width:30%;
			float:left;
			min-width: 200px;
		}
		.layui-form-label{
			width:140px;
		}
	</style>
</head>
<body>
	<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
	<!--[if lt IE 9]>
		  <script src="assets/js/html5.min.js"></script>
		  <script src="assets/js/respond.min.js"></script>
		<![endif]-->
	<span class="layui-breadcrumb">
		<a>系统管理</a>
		<a><cite>站点管理</cite></a>
	</span>
	<div style="padding-top:20px;">   
	    <form class="layui-form" action="" onsubmit="return false;">	      
	        <div class="layui-form-item">
	            <label class="layui-form-label">网站title</label>
	            <div class="layui-input-3">
	                <input type="text" name="sitename" lay-verify="" placeholder="" class="layui-input">
	            </div>
	        </div>
	        <div class="layui-form-item">
	            <label class="layui-form-label">关键词</label>
	            <div class="layui-input-3">
	                <input type="text" name="keyword" lay-verify="" placeholder="" class="layui-input">
	            </div>
	        </div>
	        <div class="layui-form-item">
	            <label class="layui-form-label">公司名称</label>
	            <div class="layui-input-3">
	                <input type="text" name="company" class="layui-input">
	            </div>
	        </div>
	        <div class="layui-form-item">
	            <label class="layui-form-label">邮箱类型</label>
	            <div class="layui-input-3">
	                <select name="type" lay-filter="" class="" lay-verify="">
	                    <option value=''>请选择</option>
	                    <option value="1">qq邮箱</option>
	                    <option value="2">163邮箱</option>
	                </select>
	            </div>
	        </div>
	        <div class="layui-form-item">
	            <label class="layui-form-label">公司邮箱</label>
	            <div class="layui-input-3">
	                <input type="text" name="mail" value="" placeholder="" class="layui-input">
	            </div>
	        </div>
	        <div class="layui-form-item">
	        	<label class="layui-form-label"></label>
	            <div class="layui-input-block">
	                <button type="button" class="layui-btn" lay-submit="" lay-filter="submit-btn">提交</button>
	            </div>
	        </div>
	    </form>
	</div>
	<script src="assets/layui/layui.js"></script>
	<script src="assets/js/all.js"></script>
	<script type="text/javascript">
		layui.use(['layer','form'],function(){
			var layer = layui.layer,
				form = layui.form,
				$ = layui.$
			
			
			//监听提交
			form.on('submit(submit-btn)', function(data) {
//				layer.alert(JSON.stringify(data.field), {
//	                time:5000,
//	                title: "最终的提交信息"
//	            });
				console.log(data.field);
//				$.ajax({
//					type:"post",
//					url:"",
//					data:data.field,
//					dataType:"json",
//					success:function(){
//						layer.alert(JSON.stringify(data.result),{
//	                        time:5000,
//	                        title:"成功"
//	                   })
//					},
//					error: function(jqXHP,textStatus,errorThrown){
//	                    layer.alert(jqXHP.responseText);
//	                }
//				});
				return false;
			});
			

		})
	</script>
</body>
</html>